package gof.factory;

/**
 * TODO
 * 2020-11-05 16:55
 */
public class PizzaTestDrive {
    public static void main(String[] args) {
        PizzaStore nyStore = new NYStylePizzaStore(); //工厂
        Pizza nyStyle = nyStore.orderPizza("NYStyle"); //具体类
        System.out.println(nyStyle.name);
    }
}
